
/*
 * PowerControlTrigger
 * implements an AbstractTrigger which shuts off the power eventually
 */

public class PowerControlTrigger extends AbstractTrigger
{

	public PowerControlTrigger(int ms, IPowerControl powerControl)
	{
		super(ms);
		this.itsIPowerControl = powerControl;
	}

	@Override
	public void execute()
	{
		itsIPowerControl.powerOff();
	}

	private IPowerControl itsIPowerControl;
}
